<?php
class User
{
	public $name;
	public function __construct($name)
	{
		$this->name=$name;
	}
	public function getName()
	{
		return $this->name;
	}
}
$lisi = new User('lisi');
echo $lisi->getName();
$wangwu = new User('wangwu');
echo $wangwu->getName();